package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 魔力拼团规则
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MagicGroupRule extends Model<MagicGroupRule> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 拼团ID
     */
    private String groupId;

    /**
     * 拼团人数开始
     */
    private Integer qtyBegin;

    /**
     * 拼团人数结束
     */
    private Integer qtyEnd;

    /**
     * 团长获得折扣
     */
    private Double masterDiscount;

    /**
     * 团长获得积分
     */
    private Integer masterJf;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 团员获得折扣
     */
    private Double memberDiscount;

    /**
     * 团员获得积分
     */
    private Integer memberJf;


    public static final String ID = "id";

    public static final String GROUP_ID = "group_id";

    public static final String QTY_BEGIN = "qty_begin";

    public static final String QTY_END = "qty_end";

    public static final String MASTER_DISCOUNT = "master_discount";

    public static final String MASTER_JF = "master_jf";

    public static final String CREATE_TIME = "create_time";

    public static final String MEMBER_DISCOUNT = "member_discount";

    public static final String MEMBER_JF = "member_jf";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
